﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SubCategories.ascx.cs" Inherits="GUI.Controls.News.SubCategories" %>
<div class="hidden"><asp:Literal runat="server" ID="ltrBreadcrumb"></asp:Literal></div>
<div class="nav-sub clearfix">
    <ul>
        <asp:Literal ID="ltrSubMenu" runat="server" />
    </ul>
</div>
<script type="text/javascript">
    onLoad(function () {
        var currentUrl = document.location.href;
        $(".nav-sub li a").each(function () {
            var patt = new RegExp('(' + $(this).attr('href').replace('.htm', '').replace('/', '\/') + '(\/[^/]+-[0-9]+)?.htm)$', 'ig');
            if (patt.test(currentUrl)) {
                $(this).parent().addClass('menusub_active');
            }
        });
        $(".nav-sub li:not(.menusub_active)").hover(function () { $(this).toggleClass("menusub_active"); });
    }, "News.SubCategories.ascx");
</script>
